/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package eltech;

/**
 *
 * @author strorin
 */
public class Point {

    private double x;

    /**
     * Get the value of x
     *
     * @return the value of x
     */
    public double getX() {
        return x;
    }

    /**
     * Set the value of x
     *
     * @param x new value of x
     */
    public void setX(double x) {
        this.x = x;
    }

    private double y;

    /**
     * Get the value of y
     *
     * @return the value of y
     */
    public double getY() {
        return y;
    }

    /**
     * Set the value of y
     *
     * @param y new value of y
     */
    public void setY(double y) {
        this.y = y;
    }

    public Point(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public Point() {
        this.x = 0;
        this.y = 0;
    }

    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        result.append("(" + getX() + "," + getY() + ")");
        return result.toString();
    }

}
